import router from '@system.router'

function fibo(n){
    if(n<2) { return 1; }
    console.log("current n: " + n)
    return fibo(n-1) + fibo(n-2);
}

export default {
    data: {
        title: "",
        data : 1
    },
    onInit() {
        this.title = this.$t('strings.world');
    },
    onclick: function () {
        router.replace({
            uri: "pages/second/second"
        })
    },
    onclick3: function () {
        while(true) {console.log("test")}
    },
    triggerError: function () {
        this.data = c
        this.data = 100 / 0
        this.title = this.$t('strings.world');
        throw "force throw error"
    },
    onclick4: function() {
        fibo(111110000000000000000000)
    }
}



